package com.ruoyi.project.xkx.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.xkx.school.mapper.XkxCourseMapper;
import com.ruoyi.project.xkx.school.domain.XkxCourse;
import com.ruoyi.project.xkx.school.service.IXkxCourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 所授课程类型Service业务层处理
 * 
 * @author ..
 * @date 2021-05-10
 */
@Service
public class XkxCourseServiceImpl extends ServiceImpl<XkxCourseMapper,XkxCourse> implements IXkxCourseService
{
    @Autowired
    private XkxCourseMapper xkxCourseMapper;

    /**
     * 查询所授课程类型
     * 
     * @param courseId 所授课程类型ID
     * @return 所授课程类型
     */
    @Override
    public XkxCourse selectXkxCourseById(Integer courseId)
    {
        return xkxCourseMapper.selectXkxCourseById(courseId);
    }

    /**
     * 查询所授课程类型列表
     * 
     * @param xkxCourse 所授课程类型
     * @return 所授课程类型
     */
    @Override
    public List<XkxCourse> selectXkxCourseList(XkxCourse xkxCourse)
    {
        return xkxCourseMapper.selectXkxCourseList(xkxCourse);
    }

    /**
     * 新增所授课程类型
     * 
     * @param xkxCourse 所授课程类型
     * @return 结果
     */
    @Override
    public int insertXkxCourse(XkxCourse xkxCourse)
    {
        return xkxCourseMapper.insertXkxCourse(xkxCourse);
    }

    /**
     * 修改所授课程类型
     * 
     * @param xkxCourse 所授课程类型
     * @return 结果
     */
    @Override
    public int updateXkxCourse(XkxCourse xkxCourse)
    {
        return xkxCourseMapper.updateXkxCourse(xkxCourse);
    }

    /**
     * 批量删除所授课程类型
     * 
     * @param courseIds 需要删除的所授课程类型ID
     * @return 结果
     */
    @Override
    public int deleteXkxCourseByIds(Integer[] courseIds)
    {
        return xkxCourseMapper.deleteXkxCourseByIds(courseIds);
    }

    /**
     * 删除所授课程类型信息
     * 
     * @param courseId 所授课程类型ID
     * @return 结果
     */
    @Override
    public int deleteXkxCourseById(Integer courseId)
    {
        return xkxCourseMapper.deleteXkxCourseById(courseId);
    }
}
